import request from '@/utils/request'
var group_name = 'questionCommon'

export default {
    pageList(data) {
        return request({
            url: `/${group_name}/pageList`,
            method: 'post',
            data: data
        })
    },
    enable(id) {
        return request({
            url: `/${group_name}/enable/${id}`,
            method: 'get'
        })
    },
    delete(id) {
        return request({
            url: `/${group_name}/delete/${id}`,
            method: 'get'
        })
    },
    updateInfo(data) {
        return request({
            url: `/${group_name}/updateInfo`,
            method: 'post',
            data: data
        })
    },
    addQuestion(data) {
        return request({
            url: `/${group_name}/addQuestion`,
            method: 'post',
            data: data
        })
    }
}